Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible more robust wait for primary for replica set #206

Closed
wants to merge 3 commits into from

Conversation

jardakotesovec
Copy link
Contributor

Here is quick attempt to improve #203

Basically detecting from stdout that one of the server transitioned to primary, which seems to be good enough indicator to connect to it.

Sorry for bit misusing typescript. Wanted to quickly try this attempt and typescript takes additional time&effort to make it happy.

@jardakotesovec
Copy link
Contributor Author

Better verison on its way, will open another PR

@hasezoey hasezoey mentioned this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant